﻿@{ 
    Layout = "~/Views/Shared/_Layout.cshtml"; 
    string domain = "http://altp.zomgame.com";
}
<script type="text/javascript">
        var domain = "@domain";

</script>
@Html.Action("Thongbao", "home")
@Html.Action("chuyengia", "home")
@Html.Action("khangia", "home")
@Html.Action("chuyengialst", "home")
@Html.Action("PopupThongbao", "home")
<div class="bgPopup"></div>
<div class="swiper-container">
    <div class="swiper-wrapper">
        <div class="swiper-slide green-slide">
            @Html.Action("Register", "Account")
        </div>
        <div class="swiper-slide green-slide">
            @Html.Action("Login", "Account")
        </div>
        <div class="swiper-slide red-slide">
            @Html.Action("play", "home")
        </div>
        <div class="swiper-slide blue-slide">
            @Html.Action("ListQuestion", "home")
        </div>
        <div class="swiper-slide orange-slide">
            @Html.Action("QuestionView", "home")
        </div>
        <div class="swiper-slide green-slide">
            @Html.Action("ketqua", "home")
        </div> 
        <div class="swiper-slide green-slide"> 
        </div>
    </div>
    <div class="pagination"></div>
</div>
<script>
    var mySwiper = new Swiper('.swiper-container', {
        onlyExternal: true,
        speed: 500
    })
    mySwiper.swipeTo(2);

</script>
 
<script type="text/javascript">






    var queue = new createjs.LoadQueue(),
    $state = $('#state'),
    $progress = $('#progress'),
    $progressbar = $('#progressbar .bar');

    createjs.Sound.alternateExtensions = ["mp3"];
    queue.installPlugin(createjs.Sound);

    queue.on('complete', onComplete);
    queue.on('progress', onProgress);


    queue.loadManifest([
        { id: 'bgmusic', src: '@domain/Content/sounds/bgmusic.mp3' },
        { id: '1', src: '@domain/Content/imgs/bg_circle_anim.png' },
        { id: '2', src: '@domain/Content/imgs/hr.png' },
        { id: '3', src: '@domain/Content/imgs/hr1.png' },
        { id: '4', src: '@domain/Content/imgs/button_trial_normal.png' },
        { id: '5', src: '@domain/Content/imgs/button_zalo_login_normal.png' },
        { id: '6', src: '@domain/Content/imgs/button_trial_press.png' },
        { id: '7', src: '@domain/Content/imgs/button_zalo_login_active.png' },
        { id: '8', src: '@domain/Content/imgs/avata.png' },
        { id: '9', src: '@domain/Content/imgs/profile_icon_money.png' },
        { id: '10', src: '@domain/Content/imgs/question_background_01.png' },
        { id: '11', src: '@domain/Content/imgs/question_background_03.png' },
        { id: '12', src: '@domain/Content/imgs/order_question.png' },
        { id: '13', src: '@domain/Content/imgs/question_background_02.png' },
        { id: '14', src: '@domain/Content/imgs/button_image_help_stop.png' },
        { id: '15', src: '@domain/Content/imgs/button_image_help_stop_active.png' },
        { id: '17', src: '@domain/Content/imgs/button_image_help_change_question.png' },
        { id: '18', src: '@domain/Content/imgs/button_image_help_change_question_active.png' },
        { id: '19', src: '@domain/Content/imgs/button_image_help_change_question_x.png' },
        { id: '20', src: '@domain/Content/imgs/button_image_help_5050.png' },
        { id: '21', src: '@domain/Content/imgs/button_image_help_5050_active.png' },
        { id: '22', src: '@domain/Content/imgs/button_image_help_5050_x.png' },
        { id: '23', src: '@domain/Content/imgs/button_image_help_audience.png' },
        { id: '24', src: '@domain/Content/imgs/button_image_help_audience_active.png' },
        { id: '25', src: '@domain/Content/imgs/button_image_help_audience_x.png' },
        { id: '26', src: '@domain/Content/imgs/button_image_help_audience.png' },
        { id: '27', src: '@domain/Content/imgs/button_image_help_audience_active.png' },
        { id: '28', src: '@domain/Content/imgs/button_image_help_audience_x.png' },
        { id: '29', src: '@domain/Content/imgs/button_image_help_call.png' },
        { id: '30', src: '@domain/Content/imgs/button_image_help_call_active.png' },
        { id: '31', src: '@domain/Content/imgs/button_image_help_call_x.png' },
        { id: '32', src: '@domain/Content/imgs/layout_play_answer_background_normal.png' },
        { id: '33', src: '@domain/Content/imgs/layout_play_answer_background_selected.png' },
        { id: '34', src: '@domain/Content/imgs/layout_play_answer_background_true.png' },
        { id: '35', src: '@domain/Content/imgs/layout_play_answer_background_wrong.png' },
        { id: '36', src: '@domain/Content/imgs/player_image_money_curent.png' },
        { id: '37', src: '@domain/Content/imgs/player_image_money_milestone.png' },
        { id: '38', src: '@domain/Content/imgs/audience_1.png' },
        { id: '39', src: '@domain/Content/imgs/audience_3.png' },
        { id: '40', src: '@domain/Content/imgs/audience_2.png' },
        { id: '41', src: '@domain/Content/imgs/layout_help_call_title_background.png' },
        { id: '42', src: '@domain/Content/imgs/dialog_confirm_background_button.png' },
        { id: '43', src: '@domain/Content/imgs/btn_template_active.png' },
        { id: '44', src: '@domain/Content/imgs/player_layout_help_call_01.png' },
        { id: '45', src: '@domain/Content/imgs/player_layout_help_call_01_active.png' },
        { id: '46', src: '@domain/Content/imgs/player_layout_help_call_02.png' },
        { id: '47', src: '@domain/Content/imgs/player_layout_help_call_02_active.png' },
        { id: '48', src: '@domain/Content/imgs/player_layout_help_call_03.png' },
        { id: '49', src: '@domain/Content/imgs/player_layout_help_call_03_active.png' },
        { id: '50', src: '@domain/Content/imgs/player_layout_help_call_04.png' },
        { id: '51', src: '@domain/Content/imgs/player_layout_help_call_04_active.png' },
        { id: '52', src: '@domain/Content/imgs/ic_life.png' },
        { id: '53', src: '@domain/Content/imgs/meta__action_back.png' },
        { id: '54', src: '@domain/Content/imgs/result_image_stroke.png' },
        { id: '55', src: '@domain/Content/imgs/button_zalo_login_normal.png' },
        { id: '56', src: '@domain/Content/imgs/bgPopup.png' },
        { id: 'touch_sound', src: '@domain/Content/sounds/touch_sound.mp3' },

@*

loadSound("AAAAAAAAAAAAAAAAAAAAAA");




{ id: 'ans_now1', src: '@domain/Content/sounds/ans_now1.mp3' },     *@
@*{ id: 'luatchoi_c', src: '@domain/Content/sounds/luatchoi_c.mp3' },
{ id: 'ans_now2', src: '@domain/Content/sounds/ans_now2.mp3' },
{ id: 'ans_now3', src: '@domain/Content/sounds/ans_now3.mp3' },
{ id: 'background_music_b', src: '@domain/Content/sounds/background_music_b.mp3' },
{ id: 'background_music_c', src: '@domain/Content/sounds/background_music_c.mp3' },
{ id: 'chuc_mung_vuot_moc_01_1', src: '@domain/Content/sounds/chuc_mung_vuot_moc_01_1.mp3' },

 *@




            @*{ id: 'gofind_b', src: '@domain/Content/sounds/gofind_b.mp3' },
                    { id: 'lose2', src: '@domain/Content/sounds/lose2.mp3' },
                { id: 'lose_12', src: '@domain/Content/sounds/lose_12.mp3' },
                { id: 'lose_22', src: '@domain/Content/sounds/lose_22.mp3' },
                { id: 'lose_32', src: '@domain/Content/sounds/lose_32.mp3' },
                { id: 'lose_42', src: '@domain/Content/sounds/lose_42.mp3' },
               { id: 'true_12', src: '@domain/Content/sounds/true_12.mp3' },
                { id: 'true_13', src: '@domain/Content/sounds/true_13.mp3' },
                { id: 'true_22', src: '@domain/Content/sounds/true_22.mp3' },
                { id: 'true_23', src: '@domain/Content/sounds/true_23.mp3' },
                { id: 'true_32', src: '@domain/Content/sounds/true_32.mp3' },
                { id: 'true_33', src: '@domain/Content/sounds/true_33.mp3' },
                { id: 'true_43', src: '@domain/Content/sounds/true_43.mp3' },*@
            @*{ id: 'ques1_b', src: '@domain/Content/sounds/ques1_b.mp3' },
                { id: 'ques2_b', src: '@domain/Content/sounds/ques2_b.mp3' },
                { id: 'ques3_b', src: '@domain/Content/sounds/ques3_b.mp3' },
                { id: 'ques4_b', src: '@domain/Content/sounds/ques4_b.mp3' },
                { id: 'ques5_b', src: '@domain/Content/sounds/ques5_b.mp3' },
                { id: 'ques7_b', src: '@domain/Content/sounds/ques7_b.mp3' },
                { id: 'ques8_b', src: '@domain/Content/sounds/ques8_b.mp3' },
                { id: 'ques9_b', src: '@domain/Content/sounds/ques9_b.mp3' },
                { id: 'ready_b', src: '@domain/Content/sounds/ready_b.mp3' },
                { id: 'ready_c', src: '@domain/Content/sounds/ready_c.mp3' },
                { id: 'sound5050_2', src: '@domain/Content/sounds/sound5050_2.mp3' },*@





    ]);



    function onComplete(event) {
        loadSound("luatchoi_b");
        playSound("bgmusic");
        $("#IdPlay").css("display", "block");
        $("#boxload").css("display", "none");
    }

    function onProgress(event) {
        var progress = Math.round(event.loaded * 100);

        console.log('General progress', Math.round(event.loaded) * 100, event);
        $progress.text(progress + '%');
        $progressbar.css({
            'width': progress + '%'
        });
    }


</script>


 






 